package com.ruoyi.fapp.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.fapp.service.AppAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/app/account")
public class AppAccountController extends BaseController {



    @Autowired
    AppAccountService appAccountService;


    //获取个人信息
    @PostMapping("/getUserInfo")
    public AjaxResult getUserInfo() {


        appAccountService.getUserInfo();

        return AjaxResult.success(getLoginUser());
    }


    //修改用户信息
    @PostMapping("/updateUserInfo")
    public AjaxResult updateUserInfo() {

        appAccountService.updateUserInfo();
        return AjaxResult.error();
    }










}
